package com.itheima.dao.system;

import com.itheima.domain.system.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleDao {
    int save(Role role);

    int update(Role role);

    Role findById(String id);

    List<Role> findAll();

    void deleteRolePermission(String roleId);

    void saveRolePermission(@Param("roleId") String roleId, @Param("permissionId") String permissionId);

    List<Role> findAllRoleByUserId(String userId);

    int deleteByIds(String s);

    List<Role> findByMethod(String name);
}
